package com.itcg.cn.Demo;

public class Test {
    public static void main(String[] args) {
        String a = "abcba", b = "上海自来水来自海上" ,c ="";
        System.out.println(getIsString(b));

    }
    public static boolean getIsString(String a) {
        if ("" == a) {
            return false;
        }
        String a2 = "";
        for (int i = a.length() - 1; i >= 0; i--) {
            a2 += a.charAt(i);
        }
        a = a2;
        return a.equals(a2);
    }
}
